﻿using Inovout.Models;

namespace Inovout.NameCodeDictionary
{
    partial class NameCode : DataObject
    {
        private string name;
        public virtual string Name
        {
            get { return this.name; }
            set
            {
                this.name = value;
                QuanPinName = ConvertToQuanPin(Name);
                JianPinName = ConvertToJianPin(Name);

            }
        }
        public virtual string QuanPinName { get; set; }
        public virtual string JianPinName { get; set; }

        private string shortName;
        public virtual string ShortName
        {
            get { return this.shortName; }
            set
            {
                this.shortName = value;
                QuanPinShortName = ConvertToQuanPin(ShortName);
                JianPinShortName = ConvertToJianPin(ShortName);

            }
        }
        public virtual string QuanPinShortName { get; set; }
        public virtual string JianPinShortName { get; set; }

        public virtual string Code { get; set; }
        public virtual NameCodeCollection Collection { get; set; }
    }
}
